import os
from celery import Celery

broker_url = os.getenv("REDIS_URL", "redis://redis:6379/0")
backend_url = broker_url

celery_app = Celery(
    "recruiting",
    broker=broker_url,
    backend=backend_url,
)

@celery_app.task
def ping():
    return "pong" 